Hello guys. I was looking to update the Weapons Control section of my admin mod. Currently there are 8 different "styles" to play. For example, cbweapons 1 will allow stock weapon choices, cbweapons 2 will give a sniper/rifle no matter what weapon you pick, cbweapons 3 will give you only a rifle.... the list goes on until you have the option to play with each of the weapons exclusively. I'd like to update this to something like "cb_rifles" with 1 or 0, "cb_shotty" with 1 or 0, so that I can allow admins to more dynamically assign weapon choices per map. I can take care of that no issue. But I don't want my admins to have to type "cb_rifles 1" "cb_shotty 0" "cb_sniper 0" "cb_pistol 0" every time... you get the idea. I was thinking of adding something like this to my RCON menu with commands linked for each weapon in a checkbox:
resource CheckBox { title "Pistols" name "Default" rect 455 235 100 20 fgcolor 0.70 0.90 0.00 1.00 bgcolor 0.00 0.00 0.00 0.80 borderstyle "3D_BORDER" linkcvar "rcon pistols" }
But the last line: linkcvar "rcon pistols", doesn't do anything. Linkcvar is only for user variables, like ui_minicon or forced models. Is there any way of using something like linkcvar so it shows a "live status" (checked for on, unchecked for off) of which variables are set to 1 and which are set to 0? I like the visual aspect of doing it this way.
As always, I appreciate any help in advance.
Thanks,



Reply With Quote
